package com.corechina.apex_osswords.controller;


import com.corechina.apex_osswords.common.Response;
import com.corechina.apex_osswords.service.ICorePollingEquipmentService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 巡检设备表 前端控制器
 * </p>
 *
 * @author cc
 * @since 2023-03-10
 */

@Api(tags = "巡检设备管理③")
@RestController
@RequestMapping("/core/pollingEquipment")
public class CorePollingEquipmentController {

    @Autowired
    private ICorePollingEquipmentService iCorePollingEquipmentService;

    @ApiOperation("列表")
    @GetMapping("/getList")
    public Response getList(Integer planId, Integer equipmentId, Integer status, Integer type, Integer pageIndex, Integer pageSize) {
        return iCorePollingEquipmentService.getList(planId, equipmentId, status, type, pageIndex, pageSize);
    }

    @ApiOperation("详情")
    @GetMapping("/getOne")
    public Response getList(Integer id) {
        return iCorePollingEquipmentService.getOne(id);
    }

}

